import './assets/styles/main.css'
import './assets/styles/fonts.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import i18n from './language';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
// 注册所有的图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router)
    .use(store)
    .use(ElementPlus, { locale: "zhCn" })
    .use(ElementPlusIconsVue)
    .use(i18n)
    .mount('#app')